// channel-pc-start
// 定义前缀
const STAFFCENTER = '/m-staff-center/api/v1'
// 获取角色管理列表数据
export const getMerchantRolePageList = STAFFCENTER + '/merchant/role/getMerchantRolePageList'
// 根据角色ID查询所拥有的资源
export const getRoleResourceTreeByRoleId = STAFFCENTER + '/merchant/role/getRoleResourceTreeByRoleId'
// 角色删除
export const roleDeleteById = STAFFCENTER + '/merchant/role/deleteById'
// 添加角色
export const merchantRoleSave = STAFFCENTER + '/merchant/role/save'
// 编辑角色
export const merchantRoleUpdate = STAFFCENTER + '/merchant/role/update'
// 角色分配资源树
export const roleSaveRoleResourceTree = STAFFCENTER + '/merchant/role/saveRoleResourceTree'
// 查询用户管理列表的内容
export const UcMerchantUserPageList = STAFFCENTER + '/merchantUser/pageList'
// 更新用户信息
export const UcMerchantUserUpdate = STAFFCENTER + '/merchantUser/update'
// 用户管理 --- 停用启用
export const updateStatusById = STAFFCENTER + '/merchantUser/updateStatusById'
// 更新用户信息
export const updateUserAuditStatus = STAFFCENTER + '/merchantUser/updateUserAuditStatus'
// 新增用户、启用，停用用户
export const UcMerchantUserSave = STAFFCENTER + '/merchantUser/save'
// 删除用户
export const UcMerchantUserDeleteById = STAFFCENTER + '/merchantUser/deleteById'
// 获取权限设置级联
export const UcMerchantUserGetUserPower = STAFFCENTER + '/merchantUser/getUserPower'
// 用户管理 -- 修改用户角色权限
export const UcMerchantPostInstUpdate = STAFFCENTER + '/merchantPostInst/update'
// 用户管理 -- 删除用户角色权限
export const deletePositionInstByUserId = STAFFCENTER + '/merchantPostInst/deletePositionInstByUserId'
// 设置权限
export const UcMerchantUserAddUserPower = STAFFCENTER + '/merchantUser/addUserPower'
// 获取生产企业
export const UcResourceGroupList = STAFFCENTER + '/resourceGroup/list'
// 获取菜单权限tree -- old
export const getDefaultResourceTreeByGroupCode = STAFFCENTER + '/groupResource/getDefaultResourceTreeByGroupCode'
// 获取菜单权限tree
export const getAppAndAppResource = STAFFCENTER + '/app/getAppAndAppResource'
// 设置菜单权限
export const saveDefaultResourceTree = STAFFCENTER + '/groupResource/saveDefaultResourceTree'
// 设置当前公司的菜单权限
export const addAppAndAppResource = STAFFCENTER + '/merchantApp/addAppAndAppResource'
// 菜单管理-get左侧的公司数据
export const getCompanyByAppResourceId = STAFFCENTER + '/appResource/getCompanyByAppResourceId'
// 菜单管理-添加企业
export const addRelationCompany = STAFFCENTER + '/appResource/addRelationCompany'
// 菜单管理-删除单个公司
export const deleteRelationCompanyByAppResourceIdListAndCompanyId = STAFFCENTER + '/appResource/deleteRelationCompanyByAppResourceIdListAndCompanyId'
// 菜单管理-删除菜单下的所有公司
export const deleteAllRelationCompanyByAppResourceIdList = STAFFCENTER + '/appResource/deleteAllRelationCompanyByAppResourceIdList'
// 组织管理 - 删除组织
export const UcOrganizationDeleteById = STAFFCENTER + '/organization/deleteById'
// 组织管理- 根据id获取组织详情
export const UcOrganizationGetById = STAFFCENTER + '/organization/getById'
// 组织管理 - 修改当前组织的信息
export const UcOrganizationUpdate = STAFFCENTER + '/organization/update'
// 组织管理 - 添加子组织
export const UcOrganizationSave = STAFFCENTER + '/organization/save'
// 登录-发送验证码
export const sendVerificationCode = STAFFCENTER + '/login/sendVerificationCode'
// 登录-用户名密码
export const loginLoginByCode = STAFFCENTER + '/login/loginByCode'
// 登录-手机号验证码
export const loginLoginByPhone = STAFFCENTER + '/login/loginByPhone'
// 登录-手机号验证码
export const sendRegistVerificationCode = STAFFCENTER + '/login/sendRegistVerificationCode'
// 登录- 获取用户角色菜单
// export const getCurrAppResource = STAFFCENTER + '/common/resource/getCurrAppResource'
export const getCurrAppResource = STAFFCENTER + '/login/getCurrentResourceListByApp'
// 查询分子公司
export const getChildrenCompany = STAFFCENTER + '/organization/getChildrenCompany'
// -------------------- 子系统设置 ---------
// 子系统列表
export const appsList = STAFFCENTER + '/app/pageList'
// 子系统新增
export const addApps = STAFFCENTER + '/app/save'
// 子系统删除
export const deleteApps = STAFFCENTER + '/app/deleteById'
// 子系统删除
export const getAppResourceTree = STAFFCENTER + '/appResource/getAppResourceTree'
// 子系统菜单新增
export const appResourceAdd = STAFFCENTER + '/appResource/save'
// 子系统菜单更新
export const appResourceUpdate = STAFFCENTER + '/appResource/update'
// 获取子系统组和对应的子系统
export const ucAppGroupGetAll = STAFFCENTER + '/appGroup/getAll'
// 根据子系统id，查询子系统所有的菜单
export const getAppResourceByAppId = STAFFCENTER + '/app/getAppResourceByAppId'
// 获取当前菜单没有的子公司子公司、根据名称搜索
export const getAllCompany = STAFFCENTER + '/appResource/getCompanyByCompanyName'
// 获取科室信息
export const organizationUcSearchCurr = STAFFCENTER + '/organization/UcMerchantDepart/searchCurrDepart'
// 获取岗位列表
export const getCurrentPositionList = STAFFCENTER + '/login/getCurrentPositionList'
// 切换用户岗位
export const choosePosition = STAFFCENTER + '/login/choosePosition'
// 获取用户公司列表
export const getCurrentCompanyList =
  STAFFCENTER + '/login/getCurrentCompanyList'
// 切换用户公司
export const chooseCompany = STAFFCENTER + '/login/chooseCompany'

// 通用枚举值
export const commonGetAllEnums = STAFFCENTER + '/common/getAllEnums'
// channel-pc-end
// 新建跟台订单-跟台人员-saas
export const attendantList = STAFFCENTER + '/merchantUser/list'
// 登录-获取用户角色菜单
export const loginGetCurrResource =
  STAFFCENTER + '/login/getCurrentResourceListByApp'